package com.sample.tdf.sample.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 太极计算机股份有限公司
 * @since 2020-04-07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("student")
@ApiModel(value="Student对象", description="")
public class Student  {

    private static final long serialVersionUID=1L;

    /**
     * 学生姓名
     */
    private String studentName;

    /**
     * 学生班级
     */
    private String studentClass;

    /**
     * 学生性别
     */
    private String studentSex;

    private List<Course> courses;

    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    private String remark;

    @TableField(value = "flag",fill = FieldFill.INSERT)
    private Integer flag;

    @TableField(value = "created_date",fill = FieldFill.INSERT)
    private LocalDateTime createdDate;

    @TableField(value = "modified_date",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifiedDate;

    @TableField(value = "created_by",fill = FieldFill.INSERT)
    private String createdBy;

    @TableField(value = "modified_by",fill = FieldFill.INSERT_UPDATE )
    private String modifiedBy;

}
